home *** CD-ROM | disk | FTP | other *** search
- { Gilmore Systems demo source for a hypothetical car salesperson }
-
- { The following #START_SET and #END_SET defines tag names }
-
- {#START_SET}
-
- YEAR=1960..1987;
- CARPET_TYPE=1..4;
- LOCATION=1..2;
- PREFERENCE=1..2;
-
- {#END_SET}
-
- Optionrec = record
- air : string[3]; { Yes/No for Air Conditioning }
- stereo : string[3]; { Yes/No for Stereo Radio }
- powerstr : string[3]; { Yes/No for Power Steering }
- powerbrk : string[3]; { Yes/No for Power Brakes }
- powerwnd : string[3]; { Yes/No for Power Windows }
- carpeting : array[CARPET_TYPE] of string[3]; { Carpet}
- end;
-
- Carrec = record
- make : string[20]; { Manufacturer of car }
- qty_left : array[YEAR] of integer; { Year of car }
- model : string[20]; { Model name of car }
- options : Optionrec; { Options Information }
- color : string[10]; { Color of car }
- end;
-
- Namerec = record
- lastname : string[20]; { Customer's Last Name }
- firstname : string[20]; { Customer's First Name }
- middleInit : char; { Customer's Middle Initial }
- end;
-
- Addressrec = record
- street : string[20]; { Customer's Street Address }
- city : string[20]; { Customer's City }
- state : string[2]; { Customer's State }
- zip : string[10]; { Customer's Zip code }
- end;
-
- Phonerec = record
- area_code : string[3]; { Customer's area code }
- ph_number : string[10]; { Customer's phone number }
- end;
-
- PriceRec = record
- lowest : real; { Lowest price customer wants }
- highest : real; { Highest price customer wants }
- end;
-
- Customer = record
- name : Namerec; { Customer Name info }
- address : Addressrec; { Customer Address info }
- phone : array[LOCATION] of Phonerec; { Phone }
- car : array[PREFERENCE] of Carrec; { Car }
- PriceRange : PriceRec;
- LastContact : string[9]; { Date last contacted }
- end;